﻿using System.Collections.Generic;
using Mono.Cecil;

namespace MethodCaching.Weaving
{
    /// <summary>
    /// Represents a class that is capable of selecting 
    /// a set of methods from a type definition.
    /// </summary>
    public interface IMethodSelector
    {
        /// <summary>
        /// Returns a list of methods from the target <paramref name="typeDefinition"/>. 
        /// </summary>
        /// <param name="typeDefinition">The type that contains the target methods.</param>
        /// <returns>The list of selected methods.</returns>
        IEnumerable<MethodDefinition> Select(TypeDefinition typeDefinition);
    }
}
